package org.alala.user.util.error;

import java.lang.Thread.UncaughtExceptionHandler;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * 通用异常处理器，处理未捕获异常
 * @author lishun
 *
 */
public class GeneralExceptionHandler implements UncaughtExceptionHandler {

	private static Logger logger = LoggerFactory.getLogger(GeneralExceptionHandler.class);

	@Override
	public void uncaughtException(Thread t, Throwable e) {
		logger.error("uncaught eror-" + t.getName(), e);
	}

}
